<template>
  <store-list
    :getStoreList="clothesStoreList"
    :storeEdit="clothesStoreEdit"
    :storeDel="clothesStoreDel"
    :storeAdd="clothesStoreAdd"
    storeType="clothes"
    @go="goOrder"
  >
  </store-list>
</template>

<script>
import storeList from '@/views/store/StoreList'
import { clothesStoreList,storeUpkeep } from '@/api/clothes'
import { clothesStoreEdit, clothesStoreDel, clothesStoreAdd } from '@/api/store'
export default {
  components: {
    storeList
  },
  data () {
    return {
      clothesStoreList,
      clothesStoreEdit,
      clothesStoreDel,
      clothesStoreAdd,
      storeUpkeep
    }
  },
  created() {
    //this.getStoreUpkeep();
  },
  methods: {
    getStoreUpkeep() {
      let params = { name: '123' };
      storeUpkeep(params).then(res => {
        this.provinceList = res.data
      })
    },
    goOrder (item) {
      this.$router.push({
        name: 'clothesOrder',
        params: { store_id: item.id }
      })
    }
  }
}
</script>
